Skip to content

Raise compileSdk to 37 to fix AAR-metadata check failure#335

Merged
bernardladenthin merged 1 commit into
mainfrom
claude/android-compilesdk-37-p2k6wq
Jul 11, 2026
Merged

Raise compileSdk to 37 to fix AAR-metadata check failure#335
bernardladenthin merged 1 commit into
mainfrom
claude/android-compilesdk-37-p2k6wq

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • android-llmservice's :app:checkReleaseAarMetadata task failed in CI with 9 AAR-metadata issues: activity-compose:1.13.0, androidx.core:1.18.0, and androidx.navigationevent:*:1.0.0 require compileSdk >= 36; lifecycle-{viewmodel,runtime}-compose:2.11.0 require compileSdk >= 37. These versions were all pulled in by the dependency bumps in Upgrade AGP to 9.2.0 and Gradle to 9.4.1; update dependencies #331; the project was still on compileSdk = 35.
  • Raises compileSdk from 35 to 37 in android-llmservice/app/build.gradle.kts. targetSdk is deliberately left at 35 — compileSdk only widens the compile-time API surface, targetSdk opts into new runtime behavior and can be bumped independently (per AGP's own recommendation in the error output).
  • Also bumps .github/android-consumer-test's compileSdk to stay in sync with the fixture it mirrors (not independently required there — that fixture has no Compose dependency).
  • Updates the matching CLAUDE.md note.

Test plan

  • CI green on this branch — specifically :app:checkReleaseAarMetadata in build-android-llmservice
  • Could not build-verify locally (no Android SDK in this sandbox); fix follows AGP's own recommended action verbatim from the failure output

Related issues / PRs

Follow-up to #331 (Compose/activity/lifecycle dependency bumps).

Checklist

  • I have read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  • My commits follow Conventional Commits
  • No security-sensitive changes

https://claude.ai/code/session_015qu2VUdHXRhp6ndxJGkxri


Generated by Claude Code

CI's checkReleaseAarMetadata task failed on android-llmservice:
activity-compose 1.13.0 / androidx.core 1.18.0 / navigationevent 1.0.0
require compileSdk >= 36, and lifecycle-{viewmodel,runtime}-compose
2.11.0 require compileSdk >= 37 — all pulled in by the dependency
bumps in #331. Raises compileSdk from 35 to 37 in
android-llmservice/app/build.gradle.kts (targetSdk is left at 35 on
purpose: compileSdk only widens the compile-time API surface,
targetSdk opts into new runtime behavior and is bumped independently).
Also bumps .github/android-consumer-test's compileSdk to stay in sync
with the fixture it mirrors, though it isn't independently required
there (no Compose dependency).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015qu2VUdHXRhp6ndxJGkxri
@bernardladenthin
bernardladenthin merged commit dab4921 into main Jul 11, 2026
11 of 15 checks passed
@bernardladenthin
bernardladenthin deleted the claude/android-compilesdk-37-p2k6wq branch July 11, 2026 13:24
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants